package com.group.elmboot.feign;

import com.group.elmboot.po.Food;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


import java.util.List;

//指定调用的食品微服务名
@FeignClient(name="food-server",fallback= FoodFeignClientCallBack.class)
public interface FoodFeignClient {

    @GetMapping("/FoodController/listFoodByBusinessId")
    List<Food> listFoodByBusinessId(@RequestParam(value="businessId") Integer businessId);
}